package com.example;

import com.example.dao.UserDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;

// 添加 JUnit 5 的导入
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

@ExtendWith(SpringExtension.class)
@ContextConfiguration("classpath:aop.xml") // 或指定 XML 配置文件
public class MyTest_Junit5 {
    @Autowired
    UserDao userDao;

    @Test
    public void testXml(){
        userDao.delete();
    }
}
